package tongwentongshu.com.app.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import tongwentongshu.com.app.R;
import tongwentongshu.com.app.bean.BookDetailsBean;
import tongwentongshu.com.app.utils.GlideUtil;

/**
 * https://github.com/CymChad/BaseRecyclerViewAdapterHelper
 */
public class ReadingPeopleAdapter extends BaseQuickAdapter<BookDetailsBean.DataBean.PersoninfoBean, BaseViewHolder> {


    public ReadingPeopleAdapter(List<BookDetailsBean.DataBean.PersoninfoBean> list) {
        super(R.layout.read_people, list);

    }

    @Override
    protected void convert(BaseViewHolder helper, BookDetailsBean.DataBean.PersoninfoBean item) {
        GlideUtil.setImage(mContext, item.getPersonheader(), R.drawable.default_graph, R.drawable.default_graph, (ImageView) helper.getView(R.id.iv_user_image));
    }
}



